<template>
  <BasicModal v-bind="$attrs" destroyOnClose title="日志记录" :helpMessage="['日志记录']" width="60%" :footer="null" @register="registerModal" :destroyOnClose="true">
    <SysLogIndex ref="sysLogIndex"></SysLogIndex>
  </BasicModal>
</template>
<script lang="ts" setup>
import { getCurrentInstance } from 'vue';
import { BasicModal, useModalInner } from '@/components/modal';
import SysLogIndex from '../index.vue';

const ctx: any = getCurrentInstance();
const [registerModal, { setModalProps }] = useModalInner(async (data) => {
  let record = data.record;
  ctx.refs['sysLogIndex'].setSearchInfoProps('BaseUser', record.userId);
});
</script>
